package com.assignwork.service;

import com.assignwork.dto.WorkArrangeMachinesSubmitDTO;
import com.assignwork.entity.WorkArrangeMachines;
import com.assignwork.vo.WorkArrangeMachinesVO;
import org.springblade.core.mp.base.BaseService;

import java.util.List;

/**
 * @ClassName IWorkArrangeMachinesService
 * @Description 配工机械接口
 * @Author dujianyu
 * @Date 2023/12/18 15:35
 */
public interface IWorkArrangeMachinesService extends BaseService<WorkArrangeMachines> {

    /**
     * 提交配工机械
     * @param arrangeId 配工ID
     * @param data 数据
     * @param arrangeType 配工类型
     * @return boolean
     * @author dujianyu
     * @since 2023/12/18 15:55
     */
    boolean submitWaMachines(Long arrangeId, List<WorkArrangeMachinesSubmitDTO> data, String arrangeType);

    /**
     * 根据配工ID查找信息
     * @param arrangeId 配工ID
     * @return List<WorkArrangeMachinesVO>
     * @author dujianyu
     * @since 2023/12/18 15:55
     */
    List<WorkArrangeMachinesVO> infoByArrangeId(Long arrangeId);


    /**
     * 根据配工ID删除机械信息
     * @param arrangeId 配工ID
     * @return boolean
     * @author dujianyu
     * @since 2023/12/18 15:55
     */
    boolean removeByArrangeId(Long arrangeId);
}
